package org.bonorsoft.modules.control.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Description: 标签管理
 * @Author: WilliamYe
 * @Date:   2021-03-19
 * @Version: V1.0
 */
@Data
@TableName("police_label")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Label {

	/**id*/
	@TableId(type = IdType.AUTO)
	private Long labelId;
	/**标签名称*/
	@NotBlank(message = "标签名称不能为空")
	@Size(min = 0, max = 50, message = "标签名称长度不能超过50个字符")
	private String labelName;
	/** 父ID */
	private Long parentId;
	/** 父名称 */
	private String parentName;
	/** 显示顺序 */
	@NotBlank(message = "显示顺序不能为空")
	private String orderNum;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**创建人*/
	private java.lang.String createBy;
	/**更新人*/
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**备注*/
	private java.lang.String remark;
}
